package com.dingding.gmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dingding.gmall.common.utils.PageUtils;
import com.dingding.gmall.product.entity.SpuInfoEntity;
import com.dingding.gmall.product.vo.SpuSaveVO;

import java.util.Map;

public interface SpuInfoService extends IService<SpuInfoEntity> {

    void saveSpuInfo(SpuSaveVO spuSaveVo);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    /**
     * 按条件查询spu信息
     * @param params
     * @return
     */
    PageUtils queryByCondition(Map<String, Object> params);

    /**
     * 商品上架
     * @param spuId
     */
    void up(Long spuId);

    /**
     * 通过skuId查询Spu信息
     * @param skuId
     * @return
     */
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}
